//
//  GroupMembersViewController.h
//  Assistant
//
//  Created by Hunk on 12-2-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddressBookGroup.h"
#import "AllContactsViewController.h"
#import "GroupMemberCell.h"
#import <AddressBookUI/AddressBookUI.h>
#import "UIFooterView.h"
#import "UIToolBarView.h"
#import <MessageUI/MessageUI.h>

@interface GroupMembersViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, 
UISearchBarDelegate, GroupMemberCellDelegate, UIActionSheetDelegate, UIFooterViewDelegate, UIToolBarViewDelegate,MFMessageComposeViewControllerDelegate, AllContactsViewControllerDelegate, MFMailComposeViewControllerDelegate>
{
    @private
    UITableView            *_tableView;
    
    UIFooterView           *_footerView;
    
    // Cache all members of one group
    NSMutableArray         *_groupMembersArray;
    
    // 把所有联系人按sectionTitle重新组装后放如groupMemberDictionary
    NSMutableDictionary    *_groupMembersDictionary;
    
    NSMutableArray         *_sectionTitleArray;
    
    // Checkmark
    NSMutableDictionary    *_checkmarkDictionary;
    
    NSMutableArray         *_selectedMemberArray;
    
    AddressBookGroup       *_addressBookGroup;
    
    // For checkmark
    BOOL                   _selectedAll;    
    
    // ABPersonViewController
    ABPersonViewController *_abPersonViewController;
}
@property (nonatomic, retain) AddressBookGroup *addressBookGroup;

@end
